package com.yawn.zdweb.defect;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "zd-defect", fallback = CountServiceImpl.class)
public interface CountService {

    @GetMapping("/count/rank{rank}")
    int rankCount(@PathVariable("rank")int rank, @RequestParam("proCode") String proCode);

    @GetMapping("/count/resolve")
    int resolveCount(@RequestParam("resolved") boolean resolved, @RequestParam("proCode") String proCode);
}
